package com.bishe.demo.modules.hotel.hotel.service.impl;

import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.hotel.hotel.dao.CommentDao;
import com.bishe.demo.modules.hotel.hotel.entity.Comment;
import com.bishe.demo.modules.hotel.hotel.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentDao commentDao;

    @Override
    public ResultEntity<Comment> insertComment(Comment comment) {
        commentDao.insertComment(comment);
        return new ResultEntity<Comment>(ResultEntity.ResultStatus.SUCCESS.code,"评论成功",comment);
    }
}
